package org.example.ls.service;

import org.apache.ibatis.session.SqlSession;
import org.example.ls.entity.Student;
import org.example.ls.mapper.StudentMapper;
import org.example.ls.util.MybatisUtils;

/**
 * ClassName: StudentService
 * Description:
 *
 * @Author zjl
 * @Create 2025/04/23 16:11
 * @Version 1.0
 */
public class StudentService {

    public void save(Student student) {
        try (SqlSession session = MybatisUtils.getSqlSession()) {
            session.getMapper(StudentMapper.class).save(student);
        }
    }
}
